package com.duolai;


import com.duolai.config.AppConfig;
import com.duolai.service.UserInterface;
import com.spring.DuolaiApplicationContext;

/**
 * @program: duolai-spring-01
 * @description: 测试demo
 * @author: chaidl  ！
 * @create: 2021-09-04 13:17
 */
public class TestDemo {
    public static void main(String[] args) {
        DuolaiApplicationContext applicationContext=new DuolaiApplicationContext(AppConfig.class);
        UserInterface userService1= (UserInterface) applicationContext.getBean("userService");
        // System.out.println(applicationContext.getBean("userService"));
        // System.out.println(applicationContext.getBean("userService"));
        userService1.test();
        // orderService1.test();
    }
}
